package com.myz.app.service.impl;

import com.myz.app.entity.User;
import com.myz.app.mapper.UserMapper;
import com.myz.app.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maoyz on 18-3-13.
 */
@Service("userService")
public class UserServiceImpl implements IUserService {
    
    @Autowired
    private UserMapper userMapper;
    
    @Override
    public List<User> getUserByName(String username) {
        return userMapper.getUserByName(username);
    }

    @Override
    public User getPasswordByName(String username) {
        return userMapper.getPasswordByName(username);
    }
}
